<?php

class indexModel extends Model{
    public function login(){
        $username = isset($_GET['username'])?$_GET['username']:'admin';
        $pwd = isset($_GET['pwd'])?$_GET['pwd']:'admin';
        $sql = "select * from user where username = '$username' and pwd = '$pwd'";
        return $this->link->selectByOne($sql);
    }
	
}
?>